package com.am.base;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MapperBase<T> {
    int deleteByPrimaryKey(Integer id);

    int insert(T record);

    T selectByPrimaryKey(Integer id);

    List<T> selectAll();

    int updateByPrimaryKey(T record);

    int Action(@Param("id") Integer id, @Param("Activate") String Activate);
}
